#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <vector>
#include <map>
#include <queue>
#include <cstdio>
#include <string>
#include <stack>
#include <set>
#define IOS ios::sync_with_stdio(false), cin.tie(0)
using namespace std;
typedef long long ll;

int main()
{
    IOS;
    ll n;
    cin>>n;
    cout<<1;
    for(ll i=2;i*i<=n;i++){
        cout<<" "<<i*i;
    }
    cout<<endl;
    getchar();
    getchar();
    return 0;
}
